package cn.edu.scau.cmi.chenyaoquan.abstractFactoryMethod;

public abstract class BrandFactory {
	public static final String	WENS = "Wens";
	public static final String	TIANBANG = "Tianbang";
	public static final String	AONONG = "Aonong";
	public abstract	Pork getPork();
	public abstract	Beef getBeef();
	public abstract	Chicken getChicken();
	public static	BrandFactory getMeatFactory(String brand) {
		BrandFactory mf = null;
		if(brand.equals(BrandFactory.WENS)) {
			mf =  new WensBrandFactory();
		}
		else if(brand.equals(BrandFactory.TIANBANG)) {
			mf =  new TianbangBrandFactory();
		}
		else if(brand.equals(BrandFactory.AONONG)) {
			mf =  new AonongBrandFactory();
		}
		return mf;
	}
	
}
